package com.dimples.dd.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dimples.dd.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 字典类型表
 */
@Schema(description="字典类型表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "system_dict_type")
public class SystemDictTypeDO extends BaseDO {
    /**
     * 字典主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @Schema(description="字典主键")
    private Long id;

    /**
     * 字典名称
     */
    @TableField(value = "`name`")
    @Schema(description="字典名称")
    private String name;

    /**
     * 字典类型
     */
    @TableField(value = "`type`")
    @Schema(description="字典类型")
    private String type;

    /**
     * 状态（0正常 1停用）
     */
    @TableField(value = "`status`")
    @Schema(description="状态（0正常 1停用）")
    private Byte status;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description="备注")
    private String remark;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_time")
    @Schema(description="删除时间")
    private LocalDateTime deletedTime;
}